function [max, i, j] = FindMaxInSymmetricMatrix(A)
max = 0;
N = size(A, 1);
i = 1;
j = 2;
for r = 1 : N
    for c = r + 1 : N
        if abs(A(r, c)) > abs(max)
            max = A(r,c);
            i = r;
            j = c;
        end; 
    end;  
end;
end

